package com.flying.pas.config.model;

import java.util.Date;

import com.flying.common.util.Codes;
import com.flying.framework.annotation.Param;
import com.flying.framework.annotation.Property;
import com.flying.framework.data.Data;
import com.flying.framework.data.DataSerializable;
import com.flying.framework.metadata.Meta;

@SuppressWarnings("serial")
@Meta(id="c_config",title="", table="c_config", primaryKeys={"config_id"})
public class Config extends Data implements DataSerializable {
	public final static String ENTITY_NAME = "c_config";
	
	public final static String CATEGORY_CODE = "category_code";
	public final static String CATEGORY_ID = "category_id";
	public final static String CONFIG_ID = "config_id";
	public final static String CONFIG_KEY = "config_key";
	public final static String CONFIG_VALUE = "config_value";
	public final static String CREATE_TIME = "create_time";
	public final static String DATA_TYPE = "data_type";
	public final static String REMARKS = "remarks";
	public final static String UPDATE_TIME = "update_time";

	
	@Param(value=CONFIG_ID,   required=true,   maxlength=0,	desc="配置ID" , generator=Codes.AUTO_INCREMENT, 
			props= {@Property(name="type",value="hidden")})
	private Long configId;
	
	@Param(value=CATEGORY_ID,   required=false,   maxlength=0,	desc="分组ID" , 
			props= {@Property(name="type",value="hidden")})
	private Long categoryId;
	
	@Param(value=CATEGORY_CODE,   required=false,   maxlength=50,	desc="分组代码" )
	private String categoryCode;
	
	@Param(value=CONFIG_KEY,   required=false,   maxlength=50,	desc="配置KEY" )
	private String configKey;
	
	@Param(value=CONFIG_VALUE,   required=false,   maxlength=4000,	desc="配置VALUE" )
	private String configValue;
	
	@Param(value=DATA_TYPE,   required=false,   maxlength=30,	desc="数据类型" )
	private String dataType;
	
	@Param(value=REMARKS,   required=false,   maxlength=400,	desc="说明" )
	private String remarks;
	
	@Param(value=CREATE_TIME,   required=false,   maxlength=0,	desc="创建时间" )
	private Date createTime;
	
	@Param(value=UPDATE_TIME,   required=false,   maxlength=0,	desc="修改时间" )
	private Date updateTime;
	
	
	public String getCategoryCode() {
		return this.categoryCode;
	}
	
	public void setCategoryCode(String categoryCode) {
		this.categoryCode = categoryCode;
	}
	
	public Long getCategoryId() {
		return this.categoryId;
	}
	
	public void setCategoryId(Long categoryId) {
		this.categoryId = categoryId;
	}
	
	public Long getConfigId() {
		return this.configId;
	}
	
	public void setConfigId(Long configId) {
		this.configId = configId;
	}
	
	public String getConfigKey() {
		return this.configKey;
	}
	
	public void setConfigKey(String configKey) {
		this.configKey = configKey;
	}
	
	public String getConfigValue() {
		return this.configValue;
	}
	
	public void setConfigValue(String configValue) {
		this.configValue = configValue;
	}
	
	public Date getCreateTime() {
		return this.createTime;
	}
	
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	public String getDataType() {
		return this.dataType;
	}
	
	public void setDataType(String dataType) {
		this.dataType = dataType;
	}
	
	public String getRemarks() {
		return this.remarks;
	}
	
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
	
	public Date getUpdateTime() {
		return this.updateTime;
	}
	
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	

}